{extend name="admin@public:base" /}

{block name="header"}<link rel="stylesheet" type="text/css" href="__STATIC__/google/css/css.css"/>{/block}

{block name="content_body"}
	<div class="block-header">
		<h5>平台修改</h5>
	</div>		
	<div class="card">
		<div class="body">
			<form class="form-horizontal  ajaxForm3"  method="POST">
                <div class="row clearfix">
                    <div class="col-lg-2 col-md-2 col-sm-4 col-xs-5 form-control-label" ><label for="platform">平台</label></div>
                    <div class="col-lg-3 col-md-3 col-sm-8 col-xs-7">
                        <div class="form-group">
                            <div class="form-line">
                                    <input type="text" name="platform" class="form-control" value="{$platforms['platform']|default=''}" placeholder="请输入平台"/>
                            </div>
                        </div>
                    </div>
                </div>
   
                <div class="row clearfix">
                    <div class="col-lg-2 col-md-2 col-sm-4 col-xs-5 form-control-label" ><label for="desc">平台描述</label></div>
                    <div class="col-lg-3 col-md-3 col-sm-8 col-xs-7">
                        <div class="form-group">
                            <div class="form-line">
                                    <input type="text" id="title" name="title" class="form-control" placeholder="请输入平台描述" value="{$platforms.title|default=''}"/>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-lg-2 col-md-2 col-sm-4 col-xs-5 form-control-label" ><label for="ip">平台IP</label></div>
                    <div class="col-lg-3 col-md-3 col-sm-8 col-xs-7">
                        <div class="form-group">
                            <div class="form-line">
                                    <input type="text" id="ip" name="ip" class="form-control" placeholder="请输入的后台IP" value="{$platforms['ip']|default=''}"/>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-lg-2 col-md-2 col-sm-4 col-xs-5 form-control-label" ><label for="port">平台端口</label></div>
                    <div class="col-lg-3 col-md-3 col-sm-8 col-xs-7">
                        <div class="form-group">
                            <div class="form-line">
                                    <input type="text" id="port" name="port" class="form-control" placeholder="请输入的后台端口" value="{$platforms['port']|default=''}"/>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-lg-2 col-md-2 col-sm-4 col-xs-5 form-control-label" ><label for="is_disabled">是否启用</label></div>
                    <div class="col-lg-3 col-md-3 col-sm-8 col-xs-7">
                        <!--<div class="form-group">-->
                            <div class="form-line">
                                <div class="switch">
                                    <label>
                                        禁用
                                        <input type="checkbox" name="is_disabled" id="is_disbabled" {notempty name="platforms"}{if $platforms.is_disabled == 0}checked{/if}{else/} checked{/notempty} value="{$platforms['is_disabled']|default='0'}">                                        
                                        <span class="lever"></span>
                                        启用
                                    </label>

                                </div>
                                    <!--<input type="text" id="is_disabled" name="is_disabled" class="form-control" placeholder="请输入的后台端口" value="{$platforms['is_disabled']|default=''}"/>-->
                            </div>
                        <!--</div>-->
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-md-offset-2 col-lg-offset-2 col-sm-offset-3 col-xs-offset-4 col-md-9" >
                        <button type="submit" class="btn btn-primary m-t-15 waves-effect">提交</button>  
                        &nbsp; &nbsp; &nbsp;  
                        <button type="button" class="btn btn-primary m-t-15 waves-effect">
                            <a href="{:url('admin/center.admin/platform_list')}">放弃</a>
                            </button>    
                    </div>                   
                    
                </div>
			</form>
			
		</div>
	</div>	
{/block}

